<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
		<title>领取奖品</title>
		<link rel="stylesheet" href="__PUBLIC__/Home/mystatic/css/style.css" />
	</head>

	<body class="game_result">
		<img src="__PUBLIC__/Home/mystatic/img/banner.png">


		{if condition="$show neq 0"}
			<p>恭喜你！获得了</p>
			<h4>{$data}</h4>
		{else /}
			<p>抱歉，您未获得任何奖励</p>
		{/if}
		

		<p id="xiazaiapp_tip">下载Tronker App<br> 登录活动注册ID可进行领取！
		</p>
		<a  id="xiazaiapp_btn" href="javascript:void(0);" class="download">下载Tronker App</a>
		<a  href="javascript:void(0);" id="checkMyPro" class="gotomyworks2">查看我的作品</a>
	</body>
</html>

<script type="text/javascript" src="__PUBLIC__/Home/mystatic/js/jquery-2.1.0.js"></script>
<script>

	$(function(){
		if ((window.webkit&&window.webkit.messageHandlers.gotoLogin!=null)||(window.control&&window.control.gotoLogin!=null)){
            $("#xiazaiapp_tip").html("");
			$("#xiazaiapp_btn").html("前往领取奖品");
			if (window.webkit&&window.webkit.messageHandlers.gotoLogin!=null){
				$("#xiazaiapp_btn").attr("href","#iostronkerapp://tab_name=mall");
				$("#xiazaiapp_btn").click(function(){
					window.location.href="#iostronkerapp://tab_name=mall";
				});
			}else{
				$("#xiazaiapp_btn").attr("href","tk://tronker.com/home?tab_name=mall");
			}
		}else{
			$("#xiazaiapp_btn").attr("href","{$url}");
		}
		
		
		
	});
	

	/**
	* 已经登录点击我的作品
	*/
	$("#checkMyPro").click(function() {
	var url  = "__MODULE__/Production/checkMyPro";//点击检查是否有报过名
	var myProUrl = "__MODULE__/Production/myProductInfo";
	$.ajax({
		url:url,
		type:'get',
		dataType:'json',
		success: function (data) {
			if(data.status == 0)
			{
				alert(data.message);
				return false;
			}
			else if (data.status == 1)
			{
				window.location.href= data.myprourl;
			}
		}
	})
	});
</script>
<script type="text/javascript" src="__PUBLIC__/Home/mystatic/js/bottom.js"></script>